package com.jcode.skeleton.model;

import java.util.List;

/**
 * 
 *
 * @Author dreajay
 * @DateTime 2017年3月11日 下午1:50:23
 *
 */
public class Tree extends CRUDEntity {

	private static final long serialVersionUID = 8766090010488439786L;

	protected Integer id;

	protected Integer parentId;

	protected Boolean leaf;

	protected Tree parent;

	protected List<? extends Tree> children;

	protected Integer level;

	protected Integer sort;

	protected Boolean enabled;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Boolean getLeaf() {
		return leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public Tree getParent() {
		return parent;
	}

	public void setParent(Tree parent) {
		this.parent = parent;
	}

	public List<? extends Tree> getChildren() {
		return children;
	}

	public void setChildren(List<? extends Tree> children) {
		this.children = children;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

}